package org.groupg.model;

public class CustInfo {
    private String custid, custname, custtype, userid, custstatue;

    public String getCustid() {
        return custid;
    }

    public void setCustid(String custid) {
        this.custid = custid;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getCusttype() {
        return custtype;
    }

    public void setCusttype(String custtype) {
        this.custtype = custtype;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getCuststatue() {
        return custstatue;
    }

    public void setCuststatue(String custstatue) {
        this.custstatue = custstatue;
    }

    public CustInfo(String custid, String custname, String custtype, String userid, String custstatue) {
        this.custid = custid;
        this.custname = custname;
        this.custtype = custtype;
        this.userid = userid;
        this.custstatue = custstatue;
    }

    @Override
    public String toString() {
        return "custinfo{" +
                "custid='" + custid + '\'' +
                ", custname='" + custname + '\'' +
                ", custtype='" + custtype + '\'' +
                ", userid='" + userid + '\'' +
                ", custstatue='" + custstatue + '\'' +
                '}';
    }

    public String getInsertSQLString() {

        return String.format("INSERT INTO custinfo (custid, custname, custtype, userid, custstatue) VALUES ('%s','%s','%s','%s','%s');", custid, custname, custtype, userid, custstatue);
    }

    /**
     * 先不写
     *
     * @return
     */

    public String toCsvString() {
        return "";
    }

}
